package com.boyon.common.action;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.boyon.web.response.AbstractResponse;
import com.boyon.web.response.SuccessResponse;

/**
 * ClassName:FileAction <br/>
 * Function: 文件上传. <br/>
 * Date: 2018年3月29日 下午6:26:53 <br/>
 * 
 * @author sunshulin
 * @version
 * @since JDK 1.8
 * @see
 */
@Controller
public class FileAction {

	@RequestMapping(value = "/boyon/file", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
	@ResponseBody
	public AbstractResponse getEnmu(
			@RequestParam(value = "file") MultipartFile file, String fileName,
			String remark) {
		return new SuccessResponse("未知数据类型");
	}
}
